package GUI;

public class ThreadTabela extends Thread {

	private Janela_Principal principal;

	public ThreadTabela(Janela_Principal principal){
		this.principal = principal;

	}

	public void run(){
		while(true){
			try{
				if(principal.fachada.usuarioLogado().isConectado()){
					try {
						this.sleep(2000);
					} catch (InterruptedException e) {
						System.out.println(e+"MERDA =D");
					}
					this.principal.preencherARQUIVOS();
				}
			} catch(NullPointerException e){
			}
		}
	}
}
